import request from '@/utils/request'

export function edit(data) {
  return request({
    url: '/sys/user/updateUserDeptPosition',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: '/sys/user/delete',
    method: 'post',
    data: ids
  })
}

export function getPositionList(data) {
  return request({
    url: `/sys/dept/info/${data}`,
    method: 'get'
  })
}

export default { edit, del, getPositionList }

